home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / xsharp21.zip / GLOBALS.C < prev    next >
Text File  |  1992-04-03  |  956b  |  35 lines

  1. /* Global X-Sharp variables. */
  2.  
  3. #include "polygon.h"
  4.  
  5. /* Base offset of page to which to draw, initially page 0 */
  6. unsigned int CurrentPageBase = PAGE0_START_OFFSET;
  7.  
  8. /* Base offsets of pages */
  9. unsigned int PageStartOffsets[2] = {PAGE0_START_OFFSET, PAGE1_START_OFFSET};
  10.  
  11. /* Page currently being shown, page not currently being shown */
  12. int DisplayedPage, NonDisplayedPage;
  13.  
  14. /* Clip rectangle; clips to the screen */
  15. int ClipMinX = 0, ClipMinY = 0;
  16. int ClipMaxX = SCREEN_WIDTH, ClipMaxY = SCREEN_HEIGHT;
  17.  
  18. /* All transforms for all objects are recalculated next time through main
  19.    loop if this is 1 */
  20. int RecalcAllXforms = 1;
  21.  
  22. /* Total number of objects currently active */
  23. int NumObjects;
  24.  
  25. /* World->View transform, initialized from floats */
  26. Xform WorldViewXform;
  27.  
  28. /* Object list start and end */
  29. Object ObjectListStart;
  30. Object ObjectListEnd;
  31.  
  32. /* Contains flags indicating pending ball moves */
  33. int BallEvent = 0;
  34.  
  35.